/**
 * Created by apple on 16/2/25.
 */
import template from './editPassword.view.html';
import viewController from './editPassword.controller';
class Controller {
    constructor(systemService,$rootScope, $cookies, $uiModal) {
        "ngInject"
        $rootScope.siteName = '系统权限管理';
        this.uiModal = $uiModal;
        this.show = false; //sysUserCode
        systemService.getUserInfo().then((res) => {
            console.log(res)
            this.userAccount = res.data.user.sysUserCode;
        })
    }

    toggleDropdown ($event) {
        $event.preventDefault();
        $event.stopPropagation();
        this.show = !this.show;
    }

    editPassword(){
        this.uiModal.open({
            animation   : true,
            templateUrl : template,
            controller  : viewController,
            controllerAs: 'vm',
            size        : 400,
            resolve     : {
            }
        });
    }
}

export default Controller;
